<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateVerifyCodeByPhoneTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
        //手机验证码记录表
		Schema::create('verify_code_by_phone',function(Blueprint $table){
            $table->increments('id');        //验证码标识
            $table->string('phone');         //验证手机
            $table->string('verify_code');   //验证码
            $table->string('ip');            //验证请求ip
            $table->string('ensure_session')->nullable();//验证码session
            $table->softDeletes();
            $table->timestamps();
        });
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('verify_code_by_phone');
	}

}
